package com.example.jpademo;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 主题事件路由
 */
@Component
public class ApplicationListener_A implements ApplicationListener<Event_A> {


    @Override
    public void onApplicationEvent(Event_A a) {
        System.out.println("收到A类消息");
    }
}
